/**
 * 
 */
package systole.persistence.brokersInterface;

import java.util.List;

import systole.domain.clinicalInformation.ClinicalInformation;
import systole.domain.persons.Patient;
import systole.exceptions.ExceptionDAO;

/**
 * @author jmj
 *
 */
public interface ClinicalInfoBroker {

    /**
     * @param clinicalInformation
     * @throws ExceptionDAO
     */
    public void insert(ClinicalInformation clinicalInformation) throws ExceptionDAO;

    /**
     * @param clinicalInformation
     * @throws ExceptionDAO
     */
    public void update(ClinicalInformation clinicalInformation) throws ExceptionDAO;

    /**
     * @param clinicalInformation
     * @throws ExceptionDAO
     */
    public void delete(ClinicalInformation clinicalInformation) throws ExceptionDAO;

    /**
     * @param patient
     * @return all patient clinical information
     * @throws ExceptionDAO
     */
    public List<ClinicalInformation> getAllPatientClinicalInformation(Patient patient)
            throws ExceptionDAO;

    /**
     *
     * @param patient
     * @return last cinical patient information
     * @throws ExceptionDAO
     */
    public ClinicalInformation getLastClinicalInfoByPatient(Patient patient) throws ExceptionDAO;
}
